-- GENERATED SPELL FOR [Death Singer] --


function spell0_8542(pUnit, Event) --@Banshee Curse,n/a--
pUnit:FullCastSpellOnTarget(5884,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8542', 14000, 1)
end

function spell1_8542(pUnit, Event) --@Terrifying Screech,Self--
pUnit:FullCastSpellOnTarget(6605,pUnit)
pUnit:RegisterEvent('Sorts_8542', 5500, 1)
end

function Sorts_8542(pUnit, Event)
local choix_sorts_8542 = math.random(0, 1)
if choix_sorts_8542 == 0 then
pUnit:RegisterEvent('spell0_8542', 1, 1)
end
if choix_sorts_8542 == 1 then
pUnit:RegisterEvent('spell1_8542', 1, 1)
end
end

function mob8542_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8542', math.random(1500, 3000), 1)
end

function mob8542_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8542_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8542_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8542, 1, 'mob8542_Action')
RegisterUnitEvent(8542, 2, 'mob8542_Leave')
RegisterUnitEvent(8542, 3, 'mob8542_Kill')
RegisterUnitEvent(8542, 4, 'mob8542_Die')
